package com.anzia.storeback.service;

import com.anzia.storeback.entity.SecGood;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface SecKillService {

    List<SecGood> getSecGoods();
    SecGood getSecGood(Integer secgood_id);
    int addSecKillOrder(Integer user_id, Integer product_id, Integer secgoods_id);
    boolean isInSecKill(int secgoods_id);
    Map getSecResult(int user_id, int secgoods_id);
    int decreaseSecGoodsStock(int secgoods_id, int user_id, int product_id);

}
